<template>
  <div>
    <A></A>
    <B></B>
    <C></C>
    <button @click="remove">移除所有事件</button>
  </div>
</template>

<script setup lang="ts">
import A from '@/components/Test/A.vue'
import B from '@/components/Test/B.vue'
import C from '@/components/Test/C.vue'
import eventBus from '@/eventBus';
const remove = () => {
  eventBus.off()
}
</script>

<style scoped>

</style>